Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p><b>Note:</b> We have used the <b>top</b> element instead of the <b>window</b> element, because we use frames. If you do not use frames, use the <b>window</b> element instead.</p> <p>This example works only in Internet Explorer and Safari.</p> <button onclick="resizeWin()">Resize window</button> <script> function resizeWin() { top.resizeBy(100, 100); } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_resizeby4 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:28:01 GMT --> </html>
Result:
Try it Yourself - © w3schools.com